﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SimCMS.Repository;
using SimCMS.Model;

namespace SimCMS.Manager
{
    public class SimobjsattrManager : ISimobjsattrManager
    {
        public IRepository<Simobjsattr> SimobjsattrRepository { get; set; }

        public object Save(Simobjsattr entity)
        {
            return this.SimobjsattrRepository.Save(entity);
        }

        public void Delete(object id)
        {
            this.SimobjsattrRepository.Delete(this.Get(id));
        }

        public Simobjsattr Get(object id)
        {
            return this.SimobjsattrRepository.Get(id);
        }

        public IList<Simobjsattr> LoadAll()
        {
            return this.SimobjsattrRepository.LoadAll();
        }

        public void Update(Simobjsattr entity)
        {
            this.SimobjsattrRepository.Update(entity);
        }
    }
}
